package command;

import common.ParseException;
import file.FileString;

public class StaticText extends Cmd {
    public StaticText(FileString parentFileString) {
        super(parentFileString);
    }

    @Override
    public Cmd getCopy() throws ParseException {
        StaticText tCmd = new StaticText(getParentFileString().getCopy());
        for (Cmd ttCmd : getBody())
            tCmd.addCmdToBody(ttCmd.getCopy());
        return tCmd;
    }

    @Override
    public String toString() {
        return "~~{"+getParentFileString().getCommand()+"}";
    }
}
